import React from "react";
import ReactDOM, { Root } from "react-dom/client";
import { Provider } from "react-redux";
import { RouterProvider } from "react-router-dom";
import "nprogress/nprogress.css";
import "@/icons/requireIcon";
import "@/styles/index.scss";
import router from "@/router";
import store from "@/store";

const root: Root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);

root.render(
      <Provider store={store}>
         <RouterProvider router={router}></RouterProvider>
      </Provider>,
);
